projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b2ea63
)
reftests: I can't count in CSS
author
Benjamin Otte
<otte@redhat.com>
Fri, 6 Sep 2013 22:23:38 +0000
(
00:23
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 6 Sep 2013 22:23:38 +0000
(
00:23
+0200)
nth-child() is 1-indexed, not 0-indexed.
It doesn't matter for this test really, but better do it right to not confuse
poor developers who wonder why the first image is highlighted when nth-child(0)
clearly states "none".
testsuite/reftests/gtk-image-effect-inherit.css
patch
|
blob
|
history
diff --git
a/testsuite/reftests/gtk-image-effect-inherit.css
b/testsuite/reftests/gtk-image-effect-inherit.css
index a1c40be053c8427cad0c33460a3c9170515ed4a6..2a6b04121ffdff6d0aaee81dd885a20ef6a4f778 100644
(file)
--- a/
testsuite/reftests/gtk-image-effect-inherit.css
+++ b/
testsuite/reftests/gtk-image-effect-inherit.css
@@
-1,11
+1,11
@@
-GtkBox > :nth-child(
0
) {
+GtkBox > :nth-child(
1
) {
-gtk-image-effect: none;
}
-GtkBox > :nth-child(
1
) {
+GtkBox > :nth-child(
2
) {
-gtk-image-effect: highlight;
}
-GtkBox > :nth-child(
2
) {
+GtkBox > :nth-child(
3
) {
-gtk-image-effect: dim;
}